<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('【请填写功能名称】列表')" />
    <style>
    td, th { white-space: nowrap; }
</style>
</head>
<body class="gray-bg" >
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                社会信用代码：
                                <input type="text" name="sbh"/>
                            </li>
                            <li>
                                纳税人名称：
                                <input type="text" name="nsrmc"/>
                            </li>
                            <li>
                                街道：<select name="skssnd" th:with="type=${@dict.getType('street_type')}">
                                    <option value="">所有</option>
                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                                </select>
                            </li>
                            <li>
                                年度：<select name="skssnd" th:with="type=${@dict.getType('year_number')}">
                                <option value="">所有</option>
                                <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                            </select>
                            </li>
                            <li>
<!--                            <li>-->
<!--                                履职类型：-->
<!--                                <select name="cId" th:with="type=${@dict.getType('resumptionType')}">-->
<!--                                    <option value="">所有</option>-->
<!--                                    <option th:each="dict : ${resumptionType}" th:text="${dict.name}" th:value="${dict.id}"></option>-->
<!--                                </select>-->
<!--                            </li>-->
                                主管税务分局：<select name="skssnd" th:with="type=${@dict.getType('sufj_type')}">
                                    <option value="">所有</option>
                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                                </select>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:income:add">
                    <i class="fa fa-plus"></i> 添加
                </a>
                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:income:edit">
                    <i class="fa fa-edit"></i> 修改
                </a>
                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:income:remove">
                    <i class="fa fa-remove"></i> 删除
                </a>
<!--                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:income:export">-->
<!--                    <i class="fa fa-download"></i> 导出-->
<!--                 </a>-->
<!--                <a class="btn btn-info" onclick="$.table.importExcel()" shiro:hasPermission="system:income:import">-->
<!--                    <i class="fa fa-upload"></i> 导入-->
<!--                </a>-->
                <a class="btn btn-danger" onclick="$.operate.statistical()" shiro:hasPermission="system:income:statistical">
                    <i class="fa fa-refresh"></i> 统计
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('system:income:edit')}]];
        var removeFlag = [[${@permission.hasPermi('system:income:remove')}]];
        var datas = [[${@dict.getType('nsr_status')}]];
        var prefix = ctx + "system/income";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                statisticalUrl: prefix + "/statistical",
                exportUrl: prefix + "/export",
                importUrl: prefix + "/importData",
                importTemplateUrl: prefix + "/importTemplate",
                modalName: "收入信息",
                columns: [{
                    checkbox: true
                },
                {
                    field : 'id', 
                    title : '主键',
                    visible: false
                },
                {
                    field : 'sbh',
                    align: 'center',
                    title : '识别号'
                },
                {
                    field : 'nsrmc', 
                    title : '纳税人名称',
                    align: 'center',
                    formatter: function(value, row, index) {
                        return $.table.tooltip(value);
                    }
                },
                {
                    field : 'nsrzt', 
                    title : '纳税人状态',
                    align: 'center',
                    formatter: function(value, row, index) {
                        return $.table.selectDictLabel(datas, value);
                    }
                },
                {
                    field : 'hy',
                    align: 'center',
                    title : '行业'

                },
                {
                    field : 'ssjdbsc',
                    align: 'center',
                    title : '所属街道办事处'
                },
                {
                    field : 'zgsws', 
                    title : '主管税务所',
                    align: 'center',
                    formatter: function(value, row, index) {
                        return $.table.tooltip(value);
                    }
                },
                {
                    field : 'ssgly',
                    align: 'center',
                    title : '税收管理员'
                },
                {
                    field : 'zcdz', 
                    title : '注册地址',
                    align: 'center',
                    formatter: function(value, row, index) {
                        return $.table.tooltip(value);
                    }
                },
                {
                    field : 'scjydz', 
                    title : '生产经营地址',
                    align: 'center',
                    formatter: function(value, row, index) {
                        return $.table.tooltip(value);
                    }
                },
                {
                    field : 'frmc',
                    align: 'center',
                    title : '法人名称'
                },
                {
                    field : 'frdh',
                    align: 'center',
                    title : '法人电话'
                },
                {
                    field : 'frsfzh',
                    align: 'center',
                    title : '法人身份证号'
                },
                {
                    field : 'cwfzrxm',
                    align: 'center',
                    title : '财务负责人姓名'
                },
                {
                    field : 'cwfzrdh',
                    align: 'center',
                    title : '财务负责人电话'
                },
                {
                    field : 'bsrxm',
                    align: 'center',
                    title : '办税人姓名'
                },
                {
                    field : 'bsrdh',
                    align: 'center',
                    title : '办税人电话'
                },
                {
                    field : 'skssnd',
                    align: 'center',
                    title : '税款所属年度'
                },
                {
                    field : 'zzs',
                    align: 'center',
                    title : '增值税'
                },
                {
                    field : 'jryzzs',
                    align: 'center',
                    title : '金融业增值税'
                },
                {
                    field : 'xfs',
                    align: 'center',
                    title : '消费税'
                },
                {
                    field : 'qysds',
                    align: 'center',
                    title : '企业所得税'
                },
                {
                    field : 'grsds',
                    align: 'center',
                    title : '个人所得税'
                },
                {
                    field : 'zys',
                    align: 'center',
                    title : '资源税'
                },
                {
                    field : 'csjss',
                    align: 'center',
                    title : '城市建设税'
                },
                {
                    field : 'fcs',
                    align: 'center',
                    title : '房产税'
                },
                {
                    field : 'yhs',
                    align: 'center',
                    title : '印花税'
                },
                {
                    field : 'cztdsys',
                    align: 'center',
                    title : '城镇土地使用税'
                },
                {
                    field : 'tdzzs',
                    align: 'center',
                    title : '土地增值税'
                },
                {
                    field : 'ccs',
                    align: 'center',
                    title : '车船税'
                },
                {
                    field : 'clgzs',
                    align: 'center',
                    title : '车辆购置税'
                },
                {
                    field : 'gdzys',
                    align: 'center',
                    title : '耕地占用税'
                },
                {
                    field : 'qs',
                    align: 'center',
                    title : '契税'
                },
                {
                    field : 'hjbhs',
                    align: 'center',
                    title : '环境保护税'
                },
                {
                    field : 'jyffj',
                    align: 'center',
                    title : '教育费附加'
                },
                {
                    field : 'dfjyfj',
                    align: 'center',
                    title : '地方教育附加'
                },
                {
                    field : 'whsyjsf',
                    align: 'center',
                    title : '文化事业建设费'
                },
                {
                    field : 'swbmfmsr',
                    align: 'center',
                    title : '税务部门罚没收入'
                },
                {
                    field : 'cjrjybzj',
                    align: 'center',
                    title : '残疾人就业保障金'
                },
                {
                    field : 'ghjf',
                    align: 'center',
                    title : '工会经费'
                },
                    {
                        field : 'sstj',
                        align: 'center',
                        title : '税收统计'
                    },
                    {
                        field : 'fsstj',
                        align: 'center',
                        title : '非税收统计'
                    },
                    {
                        field : 'srtj',
                        align: 'center',
                        title : '收入统计'
                    },
                    {
                        title: '操作',
                        align: 'center',
                        formatter: function(value, row, index) {
                            var actions = [];
                            actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                            actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
                            return actions.join('');
                        }
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
<script id="importTpl" type="text/template">
    <form enctype="multipart/form-data" class="mt20 mb10">
        <div class="col-xs-offset-1">
            <input type="file" id="file" name="file"/>
            <div class="mt10 pt5">
                <input type="checkbox" id="updateSupport" name="updateSupport" title="如果收入信息已经存在，更新这条数据。"> 是否更新已经存在的收入数据
                &nbsp;	<a onclick="$.table.importTemplate()" class="btn btn-default btn-xs"><i class="fa fa-file-excel-o"></i> 下载模板</a>
            </div>
            <font color="red" class="pull-left mt10">
                提示：仅允许导入“xls”或“xlsx”格式文件！
            </font>
        </div>
    </form>
</script>
</html>